﻿using MyCode.Project.Infrastructure.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCode.Project.Infrastructure.Constant
{
    /// <summary>
    /// 流行美常量 - 流水编码
    /// </summary>
    public partial class LxmConst
    {
        /// <summary>
        /// 流水编码
        /// </summary>
        public class FuiouPayConst
        {
            /// <summary>
            /// 编码
            /// </summary>
            public static string charset = "GBK";

            /// <summary>
            /// 公钥
            /// </summary>
            public static string publicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCdX204oPkOwu/mkfWDjpJa7GttwyRsD36NKHb8xTJ7YkdFTUrnOteHmpwp8y11jiCjoDwTXJF/WC2sYwpypyBDSJU/iZT/4JQXhBo+DA/YPNHL5MxAKcbQgHB2IKND1nckkn7En8OCD6kEyuapZDoEmWbwcWM++GUOYc0AdWBa5QIDAQAB";

            /// <summary>
            /// 私钥
            /// </summary>
            public static string privateKey = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAJ1fbTig+Q7C7+aR9YOOklrsa23DJGwPfo0odvzFMntiR0VNSuc614eanCnzLXWOIKOgPBNckX9YLaxjCnKnIENIlT+JlP/glBeEGj4MD9g80cvkzEApxtCAcHYgo0PWdySSfsSfw4IPqQTK5qlkOgSZZvBxYz74ZQ5hzQB1YFrlAgMBAAECgYBi6KUW4GVol7B78+Sg6KynpMvoUqvDlwFs6q/OMoqF7cDpl6iqJ9tqiQv5ebNqnQd6j6zyZk20AdHC9QSOBuhJI2dNBgjN9OJdhjqCoUIBpZRuqSU74CGw2WOVZ+ehfCVSFO+tCw8qa9A2HgCjYTKHWSTxYPBHETRbKh7z3sJHAQJBAOJQvrZcELf8nKNv5aHJflAz2HWfE7VAgbgXVlHT9+wmq6sSoFpBn18A+9JSUBE/b0ErCao0/T2HFvK0gY0k3aECQQCyA7bgMCvFKRjmKMrfth42UK7r8GVjsmQ+K9xm7JLOXcI9lxA0YJNndqNKZx6Hwg9TAvFrRh9p02LaUWBbAw7FAkAP6Z1/NPn39csNstByj7hR61NM8eJw3BhC2WE4X68O66kmXijoL7UE+Qy7vQ3kKJGqA1yqmw8zRExYxFhXlEABAkAwa3Y4sKGXNUCCiiH0i7LYD0YlAvRxE7rUdlWy4TJlU3dcDVTpCkPN5qUvvbC+OHi2mZxVE3PD8y12OKA+4SwJAkEAkUqIlSFbOnSi76Rebwev55s1rMvH63WteNvMg8iknh6/5LgJJ7Svg01y7MFwHWhrvanhyPxqKN9N9ldikHc29w==";

            /// <summary>
            /// 机构号
            /// </summary>
            public static string ins_cd = "08M0026081";

            /// <summary>
            /// 商户号
            /// </summary>
            public static string mchnt_cd = "0005810F1742449";

            /// <summary>
            /// 终端号
            /// </summary>
            public static string term_id = "88888888";

            /// <summary>
            /// 终端IP
            /// </summary>
            public static string term_ip = "127.0.0.1";

            public static string appid = WebConfigUtils.GetAppSettingsInfo("H5payAppId");

            /// <summary>
            /// 异步通知
            /// </summary>
            //public static string notify_url = "http://t.loonxierp.com:9460/api/Pay/FuiouCallBack";  //开发环境回调
            //public static string notify_url = "http://gkbinfapi.wxbinf.com/api/Pay/FuiouCallBack";     //正式环境回调
            public static string notify_url = WebConfigUtils.GetAppSettingsInfo("notify_url");
            public static string FuiouPayUrl = WebConfigUtils.GetAppSettingsInfo("FuiouPayUrl"); //富友在线支付的域名


            //    富友支付的备用域名，其中一个崩了就换另外一个，暂时没空做其他切换
            //   两个域名都是可以的
            //   机房1：spay-mc.fuioupay.com(http/https均支持)
            //   机房2：spay-xs.fuioupay.com(http/https均支持)
            /// <summary>
            /// 下单URL
            /// </summary>
            public static string fuiouOnlinePayUrl = FuiouPayUrl+ "preCreate";

            /// <summary>
            /// 公众号/服务窗统一下单
            /// </summary>
            public static string fuiouOnlineWxPayUrl =  FuiouPayUrl+ "wxPreCreate";

            /// <summary>
            /// 扫码url
            /// </summary>
            public static string fuiouScanpPayUrl =  FuiouPayUrl+ "micropay";
            /// <summary>
            /// 查询URL
            /// </summary>
            public static string fuiou_23_url =  FuiouPayUrl+ "commonQuery";
            /// <summary>
            /// 退款URL
            /// </summary>
            public static string fuiou_24_url =  FuiouPayUrl+ "commonRefund";
            //资金划拨信息
            //    public static string fuiou_xx_url =  FuiouPayUrl+ "queryChnlPayAmt";
            /// <summary>
            /// 查询可提现资金URL
            /// </summary>
            public static string fuiou_27_url =  FuiouPayUrl+ "queryWithdrawAmt";
            /// <summary>
            /// 查询手续费
            /// </summary>
            public static string fuiou_28_url =  FuiouPayUrl+ "queryFeeAmt";
            /// <summary>
            ///   提现
            /// </summary>
            public static string fuiou_29_url =  FuiouPayUrl+ "withdraw";

            /// <summary>
            /// 退款查询  本接口支持所有退款交易查询(时间限制：3日内)
            /// </summary>
            public static string fuiou_30_url =  FuiouPayUrl+ "refundQuery";

            /// <summary>
            /// 微信H5支付的跳转地址
            /// </summary>
            public static string H5payurl= WebConfigUtils.GetAppSettingsInfo("H5payurl");

        }
    }
}
